/**
 * Created by wyz on 2018/5/22.
 */
import {fromJS,List} from "immutable"
import {httpUrl} from "dcloud-core"
import {httpUtil} from "dcloud-utils"

const {post,get} = httpUtil;
export default {
  namespace:"main",
  state:fromJS({
    token:null,
    cartList:null
  }),
  reducers:{

  },
  effects:{

  },
  subscriptions: {
      // 初始化监听
      init({dispatch, history}) {
          // if (location.pathname === '/main') {
          //
          // }
      }
  }
}